#include<iostream>
#include<stdio.h>

#include "../config_file.h"

const char* config_file_name = "./config_file.ini";

int main(int argc,char** argv)
{
  config_file_open(config_file_name);
  config_file_parse();
  config_file_session_into("main");
  const char * value =config_file_get_key_value("key1");
  printf("key1 value is :%s \n" , value);


  
  // add a new session //
  config_file_session_into("main");
  config_file_add_entry("key1111\t\t","sandun_dhammika");
  
  config_file_session_into("newsession");
  printf("value is:%s\n",  config_file_get_key_value("keysecond_second"));


  config_file_add_new_session("Hi");
  config_file_session_into("Hi");
  config_file_add_entry("hi","there\t\t\nhi");

   config_file_write_to_file(config_file_name);
   
  return 0; 
}
